package com.qfjy.project.weixin.api.accessToken;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import java.util.UUID;

/**
 * @author yr
 * @version 1.0
 * @date 2023/11/7 14:40
 */
@Component
@Slf4j
public class AccessTokenListener implements ServletContextListener {
    public void contextInitialized(ServletContextEvent sce) {

        log.info("项目启动了");
        new AccessTokenThread().start();


    }

    public void contextDestroyed(ServletContextEvent sce) {
        log.info("项目关闭了");
    }

}

